package cn.fangline.wo.service;

import cn.fangline.base.util.exception.BussinessException;
import cn.fangline.wo.model.Share;
import org.springframework.stereotype.Service;

/**
 * Created by 抽离 on 2017/5/15 0015.
 */
@Service
public class ShareService {

    public void addShare(Share share) throws BussinessException{
        if(share ==null || share.getHouseId() == null){
            throw new BussinessException("参数错误");
        }
        share.insert();
    }
}
